package cn.powertime.evaluation.service.impl;

import cn.powertime.evaluation.entity.DbqNews;
import cn.powertime.evaluation.mapper.DbqNewsMapper;
import cn.powertime.evaluation.service.DbqNewsService;
import cn.powertime.evaluation.vo.DbqAnswerVo;
import cn.powertime.evaluation.vo.WebReqNewsSearchVo;
import cn.powertime.evaluation.vo.WebRespNewsListVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 广告/新闻表 服务实现类
 * </p>
 *
 * @author liqi
 * @since 2019-09-23
 */
@Service
public class DbqNewsServiceImpl extends ServiceImpl<DbqNewsMapper, DbqNews> implements DbqNewsService {

    @Autowired
    private DbqNewsMapper dbqNewsMapper;

    @Override
    public IPage<WebRespNewsListVo> newsList(Page page, WebReqNewsSearchVo params) {
        return dbqNewsMapper.newsList(page,params);
    }

    @Override
    public List<DbqAnswerVo> answerQuery(Long uid) {
        return null;
    }
}
